import ajax from '@/utils/request/ajax.js'
import config from '@/config/index.js'
let server = config.server
let baseUrl = server.baseUrl

export default {
	//首页-搜索框功能
	async superSearch(data) {
		const url = baseUrl + '/main/v1/tb_tbk/superSearch'
		return await ajax('GET', url, data)
	}, 
	//首页-商品详情
	async infoGet(data) {
		const url = baseUrl + '/main/v1/tb_tbk/infoGet'
		return await ajax('GET', url, data)
	}, 
	//首页-商品转链接功能
	async convert(data) {
		const url = baseUrl + '/main/v1/tb_tbk/convert'
		return await ajax('GET', url, data)
	},
	//首页-通用物料搜索API（导购）
	async optional(data) {
		const url = baseUrl + '/main/v1/tb_tbk/optional'
		return await ajax('GET', url, data)
	},
	//首页-通用物料搜索API（导购）
	async wySuperList(data) {
		const url = baseUrl + '/main/v1/tb_tbk/WYsuperList'
		return await ajax('GET', url, data)
	},
	//首页-淘宝客物料下行导购
	async material(data) {
		const url = baseUrl + '/main/v1/tb_tbk/material'
		return await ajax('GET', url, data)
	},
	//维易-商品转链接功能
	async WYsuperSearch(data) {
		const url = baseUrl + '/main/v1/tb_tbk/WYsuperSearch'
		return await ajax('GET', url, data)
	},
	//查询导入的excel订单
	async improtOrder(data) {
		const url = baseUrl + '/main/v1/tb_tbk/orderExcel'
		return await ajax('UPLOAD', url, data)
	},
	//查看订单的
	async getTkOrder(data) {
		const url = baseUrl + '/main/v1/tb_tbk/getTkOrder'
		return await ajax('POST', url, data)
	},
	//查看粉丝返利订单
	async getFSOrder(data){
		const url = baseUrl + '/main/v1/tb_tbk/getFSOrder'
		return await ajax('POST', url, data)
	},
	//查看全部资产返利
	async getAllOrderMoney(data){
		const url = baseUrl + '/main/v1/tb_tbk/getAllOrderMoney'
		return await ajax('POST', url, data)
	},
	//官方查看订单
	async scOrderGet(data) {
		const url = baseUrl + '/main/v1/tb_tbk/scOrderGet'
		return await ajax('POST', url, data)
	},
	//获取主名称
	async getSHname(data) {
		const url = baseUrl + '/main/v1/tb_tbk/getSHname'
		return await ajax('GET', url, data)
	},
	//用户信息
	async getUserInfo(data) {
		const url = baseUrl + '/main/v1/tb_tbk/getUserInfo'
		return await ajax('POST', url, data)
	},
	//资产转化
	async orderTransTx(data) {
		const url = baseUrl + '/main/v1/tb_tbk/orderTransTx'
		return await ajax('POST', url, data)
	},
	//资产转化记录
	async orderTransHistory(data) {
		const url = baseUrl + '/main/v1/tb_tbk/orderTransHistory'
		return await ajax('POST', url, data)
	},
	//代理申请
	async apply(data) {
		const url = baseUrl + '/main/v1/tb_tbk/apply'
		return await ajax('POST', url, data)
	},
	//二级目录
	async tbcats(data) {
		const url = baseUrl + '/main/v1/tb_tbk/tbcats'
		return await ajax('POST', url, data)
	},
	
}